<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            margin:0;
        }
        .container{
            width: 1200px;
            margin: 0 auto;
           
        }
        header{
            background-color: rgb(54, 54, 54);
            height: 50px;
        }
        ul{
            list-style: none;
            margin: 0;
            padding: 0;
        }
        li.menu-item{
            float: left;
        }
        a{
            text-decoration: none;
            color: white;
            display: block;
            background-color: rgb(233, 158, 158);
            padding: 14px;
            outline: 1px solid red;
        }
        .sub-menu{
            display: none;
        }
        .menu-item:hover>.sub-menu{
            display: block;
        }
        
    </style>
</head>
<body>
    <header>
        <nav class="container">
            <ul>
                <li class="menu-item">
                    <a href="">1</a>
                    <ul class="sub-menu">
                        <li><a href="">sub</a></li>
                        <li><a href="">sub</a></li>
                        <li><a href="">sub</a></li>
                    </ul>
                </li>
                <li class="menu-item"><a href="">1</a></li>
                <li class="menu-item"><a href="">1</a></li>
                <li class="menu-item"><a href="">1</a></li>
                <li class="menu-item"><a href="">1</a></li>
            </ul>
        </nav>
    </header>
</body>
</html>